package com.iris.live.services.report.data.timeline;

import com.iris.live.services.report.data.ColumnUnit;

/**
 * @Description:时间单元
 * @author: Tony.Zhang
 * @Date: 2017-08-12 15:29
 **/
public class TimeUnit extends ColumnUnit{
    private TimeType    type;

    public TimeUnit(TimeType type, String value, String text, Integer displayRowOrder) {
        super(value, text, displayRowOrder);

        this.type = type;
    }

    public TimeUnit(TimeType type, String value, Integer displayRowOrder) {
        this(type, value, value,displayRowOrder);
    }

    public TimeType getType() {
        return type;
    }

    //时间类型
    public enum TimeType {YEAR, QUARTER, MONTH, WEEK, DAY}
}
